//引入express创建路由
const express = require('express');
const router = express.Router();

const userHandler = require('../../models/userinfo');

router.get('/select', userHandler.userSelect);
router.post('/add', userHandler.userAdd);
router.get('/all/:id', userHandler.userAll);
router.post('/edit/:id', userHandler.userEdit);
router.post('/delete/:id', userHandler.userDelete);


module.exports = router;